/*
 * Copyright 2017 Baiyyy
 * @(#)ServerMain.java
 */

package com.byyy.ccts.modules.cc.server;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 因为
 * Created by DELL on 2018-5-14.
 */
@Service("serverThreadMain")
public class ServerThreadMain {

    @Autowired
    private CCTSServer cctsServer;

    public void start(){
        Thread server = new Thread(new Runnable() {
            @Override
            public void run() {
                cctsServer.bind();
            }
        }, "NettyServerThread");
        server.start();
    }

}
